<%--

<!------------------------------------------------------------------------------
 - Copyright 2006 CORE Solutions Limited
 - All rights reserved.
 - PROPRIETARY AND CONFIDENTIAL INFORMATION.
 - Use is subject to license terms.
 -
 - FUNCTION ID      :   REMARK
 - AUTHOR           :   Ric Yik 
 - DATE CREATE      :   2006/01/05
 - DESCRIPTION      :   a HEADER TAB JSP file for the function, REMARK
 -                  :   
 -                  :   
 -                  :   
 -
 - MODIFICATION HISTORY:
 - DATE         AUTHOR          VERSION NO.         COMMENT
 - -----------  --------------  ------------------  -------------------
 - 2006/01/05   Ric Yik         1.0                 source is generated.
 -
 -
 -
------------------------------------------------------------------------------->

--%>
<%@ include file="/jsp/com/erp/app/common/jsp/directives_include.jsp"%>

<%@ page import="com.erp.app.setup.remark.vo.RemarkHdrVo"%>
<%@ page import="com.erp.app.setup.remark.web.RemarkMaintenanceAction"%>
<%@ page import="com.erp.app.setup.remark.web.RemarkMaintenanceForm"%>

<%@ include file="/jsp/com/erp/app/common/jsp/html_include.jsp"%>

<jsp:useBean id="remarkMaintenanceForm" scope="session" type="com.erp.app.setup.remark.web.RemarkMaintenanceForm" />

<!-- MUST use the following to mark as mandatory field inputs-->
<!--<bean:message key="label.general.mandatory.field"/>-->

<%
formReadOnly = false;
TableSchema ts = remarkMaintenanceForm.getTs();
%>

<table class="table_short_header">

	<tr>
		<%
		webLabel = ts.getDisplayWebLabelWithColonByObjectId("LBL_HDR_REMARK_MASTER_CODE");
		colSize = String.valueOf(ts.getColSizeByObjectId("LBL_HDR_REMARK_MASTER_CODE"));
		displaySize = String.valueOf(ts.getDisplaySizeByObjectId("LBL_HDR_REMARK_MASTER_CODE"));
		%>
		<td class="col_label">
			<span class="mandatory_label"><bean:message key="label.general.mandatory.field"/><%=webLabel%></span>
		</td>
		<td class="col_value" nowrap>
			<logic:equal name="remarkMaintenanceForm" property="pageMode" value="<%=remarkMaintenanceForm.PAGE_MODE_CREATE%>">
				<html:text property="remarkMasterCode" styleClass="textbox1" readonly="<%=formReadOnly%>" size="<%=colSize%>" maxlength="<%=displaySize%>" value="<%=CommonUtil.nullToString(remarkMaintenanceForm.getRemarkMasterCode())%>"/>
			</logic:equal>
			<logic:notEqual name="remarkMaintenanceForm" property="pageMode" value="<%=remarkMaintenanceForm.PAGE_MODE_CREATE%>">
				<bean:write name="remarkMaintenanceForm" property="remarkMasterCode" filter="true"/>
			</logic:notEqual>
		</td>
		</tr>
		<tr>
		<%
		webLabel = String.valueOf(ts.getDisplayWebLabelWithColonByObjectId("LBL_HDR_STATUS"));
		colSize = String.valueOf(ts.getColSizeByObjectId("LBL_HDR_STATUS"));
		displaySize = String.valueOf(ts.getDisplaySizeByObjectId("LBL_HDR_STATUS"));
		%>
		<td class="col_label">
			<%=webLabel%>
		</td>
		<td class="col_value" nowrap>
				<select name="status" <%=formReadOnly ? "disabled=\"true\"" : ""%> class="selectBox1">
					<%where = "(TYPE = '" + ProjectConstants.CONSTANT_TYPE_ACT_INACT + "' OR CONSTANT_CODE = '" + remarkMaintenanceForm.getStatus() + "')";%>
					<chtml:options table="T_SYS_CONSTANTS"
					valuecolumn="CONSTANT_CODE"
					textcolumn="CONSTANT_NAME"
					where= "<%=where%>"
					order="ORDER_SEQ"
					selected="<%=remarkMaintenanceForm.getStatus()%>" />
				</select>
		</td>
	</tr>
</table>

